/**
 * 
 */
package com.kbcss.dao;


import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;


import com.kbcss.dto.Department;

/**
 * @author ibm123
 *
 */
public class DeptDao extends HibernateDaoSupport {
	public void createDept(String deptId,String deptName){
		Department dept=new Department(deptId,deptName);
		getHibernateTemplate().save(dept);
	}
	@SuppressWarnings("unchecked")
	public List<Department> getAllDepartment(){
		return getHibernateTemplate().find("from Department");
	}

}
